package fachada;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

import entidades.Cliente;

public class Teste {
	

	
	
	public static void main(String[] args){
		EntityManagerFactory emf = Persistence.createEntityManagerFactory("Mercadinho");
		 
		 
		 EntityManager em = emf.createEntityManager();
		 
		 Cliente c = new Cliente("073","Ricardo","Rodrigues");
		 em.getTransaction().begin();
		 em.persist(c);
		 em.getTransaction().commit();
		 
		 
		 
		 
		 
	}

}
